package com.app.utils.impl.labour;

import android.os.Build;

import androidx.annotation.RequiresApi;

import com.app.utils.R;
import com.app.utils.impl.IConsole;
import com.app.utils.impl.Strategy;
import com.zndroid.utils.XUtils;
import com.zndroid.utils.impl.RawUtil;

/**
 * Created by lzy on 2022/2/16.
 */
public class RawUtilStrategy extends Strategy {
    public RawUtilStrategy(IConsole iConsole) {
        super(iConsole);
    }

    @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR2)
    @Override
    public void doing() {
        RawUtil util = XUtils.create().rawUtil();

        iConsole.console("readFromRaw(‘raw/test’)", util.readFromRaw(XUtils.getContext(), R.raw.test));
    }
}
